ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/src/TCP)

INCLUDE_DIRECTORIES(./
                    ./TCP/
                    )


add_executable(${PROJECT_NAME}_frontend ./server_frontend.cpp)
TARGET_LINK_LIBRARIES(${PROJECT_NAME}_frontend tcp)
set_target_properties(${PROJECT_NAME}_frontend PROPERTIES
	COMPILE_DEFINITIONS "TEST_SOCKET_CLIENT_1")
	
add_executable(${PROJECT_NAME}_client ./client.cpp)
TARGET_LINK_LIBRARIES(${PROJECT_NAME}_client tcp)
set_target_properties(${PROJECT_NAME}_client PROPERTIES
	COMPILE_DEFINITIONS "TEST_SOCKET_CLIENT_1")


INSTALL( TARGETS ${PROJECT_NAME}_frontend
    DESTINATION ${CMAKE_INSTALL_PREFIX}/bin )
INSTALL( TARGETS ${PROJECT_NAME}_client
    DESTINATION ${CMAKE_INSTALL_PREFIX}/bin )
    
ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/src/business)